﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchMOICodemapping.ascx.vb" Inherits="WebForm_ManageMOICodeMapping_SearchMOICodemapping" %>
<table>
    <tr>
        <td>
            <table>
                <asp:UpdatePanel ID="upDDLTableName" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <tr>
                            <td align="right" style="height: 24px">
                                <asp:Label ID="Label1" runat="server" meta:resourcekey="lblTableName"></asp:Label></td>
                            <td align="left" style="height: 24px">
                                <My:MyDropDownList ID="ddlTableName" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource2"
                                    DataTextField="TableText" DataValueField="CodeHeaderID">
                                </My:MyDropDownList></td>
                            <td style="height: 24px">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" style="height: 26px">
                                <asp:Label ID="Label2" runat="server" meta:resourcekey="lblColumnName"></asp:Label></td>
                            <td align="left" style="height: 26px">
                                <My:MyDropDownList ID="ddlColumnName" runat="server" DataSourceID="ObjectDataSource3"
                                    DataTextField="ColumnText" DataValueField="ColumnName">
                                </My:MyDropDownList>
                            </td>
                            <td style="height: 26px">
                                &nbsp;</td>
                        </tr>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblValue" runat="server" meta:resourcekey="lblValue"></asp:Label></td>
                    <td align="left">
                        <asp:TextBox ID="txtValue" runat="server"></asp:TextBox></td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblText" runat="server" meta:resourcekey="lblText"></asp:Label></td>
                    <td align="left">
                        <asp:TextBox ID="txtText" runat="server"></asp:TextBox></td>
                    <td>
                        &nbsp;<asp:Button ID="btGetData" runat="server" meta:resourcekey="btGetData" /></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowHoverSelect="False" AllowHoverEffect="False"
    MySortDirection="Ascending" DataKeyNames="TableName,ColumnName,Value" AutoGenerateColumns="False"
    MouseOverColor="" meta:resourcekey="gv" TotalRowCount="0">    
    <Columns>
        <asp:BoundField DataField="TableText" meta:resourcekey="bfTableText" />
        <asp:BoundField DataField="ColumnText" meta:resourcekey="bfColumnText" />
        <asp:BoundField DataField="Value" meta:resourcekey="bfValue" />
        <asp:BoundField DataField="Text" meta:resourcekey="bfText" />
        <asp:BoundField DataField="MOIValue" meta:resourcekey="bfMOIValue" /> 
        <asp:TemplateField>
            <itemtemplate>
                <asp:LinkButton id="lknEdit" meta:resourcekey="lknEdit" runat="server" CommandName="Editing"></asp:LinkButton> 
            </itemtemplate>
        </asp:TemplateField>
    </Columns>
</My:MyGridView>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetdllTableTextItem"
    TypeName="CodeMappingDAO"></asp:ObjectDataSource>
<asp:ObjectDataSource ID="ObjectDataSource3" runat="server" SelectMethod="GetdllTableTextItem"
    TypeName="CodeMappingDAO">
    <SelectParameters>
        <asp:ControlParameter ControlID="ddlTableName" Name="CodeHeaderID" PropertyName="SelectedValue"
            Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>